<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./PrincipalTemplate.xhtml">

            <ui:define name="top">
                Eli
            </ui:define>

            <ui:define name="left">
                
            </ui:define>

            <ui:define name="content">
                <f:view>  
                    <h:form>  
                        <p:growl life="2000"/>
                        <h1><h:outputText value="Create/Edit"/></h1>
                        <h:panelGrid columns="2">
                            <h:outputLabel value="Name:" for="name" />
                            <p:inputText id="name" value="#{musicalGenresBean.musicalGenres.name}" title="Name" required="true" requiredMessage="The Name field is required.">
                                <f:validateRegex pattern="([A-Z]{1}[a-z]+\s?)+"/>
                            </p:inputText>
                            <p:commandButton action="ConfirmMusicalGenres" value="Register" ajax="false"/>
                            <p:commandButton action="MusicalGenresList" value="Cancel" immediate="true" ajax="false"/>
                        </h:panelGrid>
                    </h:form>
                </f:view>


            </ui:define>

        </ui:composition>

    </body>
</html>
